package Chapter7;
import java.util.*;
public class Example07 {
	public static void main(String[] arg) {
		ArrayList list=new ArrayList();
		list.add("d1");
		list.add("d2");
		list.add("d3");
		System.out.println(list);
		ListIterator it=list.listIterator(list.size());
		while(it.hasPrevious()) {
			Object obj=it.previous();
			System.out.println(obj+" ");
		}
	}

}
